Rotates the UI screen

Value1:Rotation degress (example 90)
Value2:Duration of rotation
